---
layout: zh-CN/basic
title: Rust 程序设计语言
---

    <div class="row pitch-row">
      <div class="col-md-8">
        <p class="pitch">
          <b>Rust</b> 是一种系统编程语言。
		  它有着惊人的运行速度，能够防止段错误，并保证线程安全。
          <br/>
          <b><a href="friends.html">看看谁在使用 Rust</a></b>
        </p>
      </div>
      <div class="col-md-4">
        <a class="release-button" href="install.html">
          <div class="release-version">安装 Rust <span>{{ site.stable }}</span></div>
        </a>
        <div class="release-date">
          <a href="{{ site.stable_blog }}">{{ site.stable_date | date: "%Y 年 %-m 月 %-d 日" }}</a>
        </div>
      </div>
    </div>

    <div class="row code-row">
      <div class="col-md-4">
      <h2>特点</h2>
      <ul class="laundry-list">
        <li>零开销抽象</li>
        <li>转移语义</li>
        <li>保证内存安全</li>
        <li>线程无数据竞争</li>
        <li>基于 trait 的泛型</li>
        <li>模式匹配</li>
        <li>类型推断</li>
        <li>极小运行时</li>
        <li>高效 C 绑定</li>
      </ul>
      </div>
      <div class="col-md-8">
        <div id="active-code">
          <button type="button" class="btn btn-primary btn-sm" id="run-code">运行</button>
          <div id="editor">{% include example.rs %}</div>
          <div id="result" data-msg-running="运行中...">
            <a id="playlink"><i class="icon-link-ext"></i></a>
          </div>
        </div>
        <div id="static-code">{% include example.rs.html %}</div>
        <div class="more-examples">
          <a href="https://doc.rust-lang.org/rust-by-example/">更多例子</a>
        </div>
      </div>
    </div>

  <script type="text/javascript">
    {% include include.js %}

    include("https://cdn.jsdelivr.net/ace/1.1.3/noconflict/ace.js", function () {
      include("https://cdn.jsdelivr.net/ace/1.1.3/noconflict/mode-rust.js", function () {
        {% include editor.js %}
      });
    });
  </script>
